import sys,base64

users={
	'monitor':'bW9uaXRvcg==\n',
	'admin':'anNiZ3Nu\n',
	'trade':'dHJhZGU=\n',
	'member':'bWVtYmVy\n',
	'biz':'Yml6\n',
	'market':'bWFya2V0\n',
	'network':'bmV0d29yaw==\n'
	}

username=sys.argv[1]
password=sys.argv[2]

base64.encodestring('jsbgsn')

if users.has_key(username):
	if users[username]==base64.encodestring(password):
		print "OK"
	else:
		print "BAD"
else:
	print "BAD"